<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="../../js/mui.min.js"></script>
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<!--标准mui.css-->
		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/global.css">
		<link rel="stylesheet" type="text/css" href="../../css/app.css" />
		<script src="../../js/getURLParam.js"></script>
		<script type="text/javascript" charset="UTF-8">
		</script>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav  headerstyle">
			<a class="mui-action-back astyle"><img src="../../images/drawable-hdpi/head_back.png"/></a>
			<h1 id="title" class="mui-title">意见反馈</h1>
		</header>
		<div class="mui-content">
			
				<div>
					<td  style="border-bottom:1px solid #A9C0D0;">
						<div style="text-align:left;"><img alt="" src="../../images/drawable-hdpi/feedback_user.png" height="10%" width="10%" />
							您好，我是产品经理，欢迎您反馈在产品使用过程中的任何意见和建议……
						</div>
					</td>
				</div>
				<hr />
				<div style="width:100%;height: 50%;">
					<td  style="border-bottom:1px solid #A9C0D0;">
						<div style="text-align:left;">
							<td>
									<textarea id="question" name="neirong" rows="5"  cols="20" placeholder="请写下您的宝贵意见和建议" ></textarea>
									
							</td>
							
						</div>
					</td>
				</div>
				<div >
					<td  >
						<div style="text-align:left;">
							<td><button id="login" class="mui-btn mui-btn-block mui-btn-primary"  style="background-color: red; border: 0px;" onclick="sendto()">提交</button></td>
						</div>
					</td>
				</div>
		</div>
	</body>
	<script>
	mui.init();
			function plusReady(){
 			//这里是其它初始化代码
			//友盟统计
			mainActivity = plus.android.runtimeMainActivity();
 			//MobclickAgent = plus.android.importClass(“com.umeng.analytics.MobclickAgent”);
 			MobclickAgent = plus.android.importClass("com.umeng.analytics.MobclickAgent");
			MobclickAgent.onPageStart("yijianfankui");
 			}
			if(window.plus){
			plusReady();
			}else{
			document.addEventListener("plusready",plusReady,false);
			}
		
	 function sendto(){
	 	var question=document.getElementById("question").value;
	 	//var username=localStorage.getItem("UserName");
	 	var username="lvyingzhu";
	 	plus.nativeUI.showWaiting();
		feedback.send({
			question: question,
			contact: username
		}, function() {
			plus.nativeUI.closeWaiting();
			mui.toast('感谢您的建议~');
			//ui.clearForm();
			mui.back();
		});
	 	mui.toast(question);
	 	mainActivity = plus.android.runtimeMainActivity();
 			//MobclickAgent = plus.android.importClass(“com.umeng.analytics.MobclickAgent”);
 		MobclickAgent = plus.android.importClass("com.umeng.analytics.MobclickAgent");
		MobclickAgent.onPageEnd("yijianfankui");
		mui.openWindow("guide.html");
		mui.toast("end");
			
		
							
	 }
	function goum(){
		mainActivity = plus.android.ConversationActivity();
		fedbaca = plus.android.importClass("com.umeng.fb.FeedbackAgent");
		//var Conversation=plus.android.importClass("com.umeng.fb.ConversationActivity");
		Conversation conv=fedbaca.getDefaultConversation();
		fedbaca.getDefaultComputedStyle();
		conv.addUserReply("123");
		conv.sync();
	}
	
	</script>

</html>